<%--
Document   : cadastrarVaga
Created on : 27/11/2010, 14:47:33
Author     : Cleiviane
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" language="java"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Cadastre uma Nova Vaga</title>
        <link rel="stylesheet" type="text/css" href="../css/stylesheet.css" />
        <link rel="stylesheet" type="text/css" href="../css/ebeformatacao.css" />
    </head>
    <body class="fundo">
        <f:view locale="#{idioma.atual}">

            <f:subview id="cabecalho">
                <jsp:include page="cabecalho.jsp" />
            </f:subview>

            <h:form id="cadastramentoVaga">
                <br><br>
                <div align="center">
                    <h:outputText value="#{msgs['cadastro.vaga']}" styleClass="titulos" />
                    <br><br>

                    <h:panelGrid columns="2" >
                        
                        

                        <h:outputText value="#{msgs['publicar.funcao']}: " />
                         <h:selectOneMenu id="funcao" value="#{controlVaga.funcoesEscolhida}">
                            <f:selectItems value="#{controlVaga.funcoesCadastradas}" />
                        </h:selectOneMenu>

                         <h:outputText value="#{msgs['publicar.estado']}: " />
                         <h:selectOneMenu id="estado" value="#{controlVaga.estadoEscolhido}"
                                         onchange="this.form.submit()">
                            <f:selectItems value="#{controlVaga.estadosExistentes}"
                                           />
                        </h:selectOneMenu>

                         <h:outputText value="#{msgs['publicar.cidade']}: " />
                        <h:selectOneMenu id="cidade" value="#{controlVaga.cidadeEscolhida}">
                            <f:selectItems value="#{controlVaga.cidadesExistentes}" />
                        </h:selectOneMenu>

                        <h:outputText value="#{msgs['publicar.DataInicial']}: " />
                        <h:inputText id="data_inicio" value="#{controlVaga.vaga.data_inicioFmt}" />

                        <h:outputText value="#{msgs['publicar.duracao']}: " />
                        <h:inputText id="duracao" value="#{controlVaga.vaga.duracao}" />

                        <h:outputText value="#{msgs['publicar.sexo']}: " />
                        <h:selectOneRadio id="sexo" value="#{controlVaga.vaga.sexo_desejado}">
                            <f:selectItem itemLabel="#{msgs['publicar.feminino']}" itemValue="feminino" />
                            <f:selectItem itemLabel="#{msgs['publicar.masculino']}" itemValue="masculino" />
                            <f:selectItem itemLabel="#{msgs['publicar.ambos']}" itemValue="ambos" />
                        </h:selectOneRadio>

                        <h:outputText value="#{msgs['publicar.remuneracao']}: " />
                        <h:inputText id="remuneracao" value="#{controlVaga.vaga.remuneracao}" />
                    </h:panelGrid>
                    <h:outputText value="#{msgs['publicar.formaContato']}: " />
                    <h:selectOneRadio id="contato" value="#{controlVaga.vaga.forma_contato}">
                        <f:selectItem itemLabel="#{msgs['publicar.contatar']}" itemValue="contactar" />
                        <f:selectItem itemLabel="#{msgs['publicar.aguardarContato']}" itemValue="aguardarContato" />
                    </h:selectOneRadio>

                    <h:outputText value="#{msgs['publicar.contato']}: " />
                    <h:inputText id="formaContato" value="#{controlVaga.vaga.contato}" />

                    <h:outputText value="<br> " escape="false" />
                    <h:outputText value="<br> " escape="false" />

                    <h:panelGrid columns="3">
                        <h:outputText value="&nbsp;&nbsp;&nbsp;&nbsp;" escape="false" />
                        <h:commandButton value="#{msgs['cadastro.salvar']}" action="#{controlVaga.incluirVaga}" />
                        <h:commandButton value="#{msgs['cadastro.limpar']}" type="reset" />
                    </h:panelGrid>

                    <br><br><h:outputText value="#{msgs['publicar.obrigacao']}. " />

                </div>
                <br><br>
                <f:subview id="rodape">
                    <jsp:include page="rodape.jsp" />
                </f:subview>
            </h:form>
            <h:messages></h:messages>
        </f:view>
    </body>
</html>
